package com.study.algorithm.linkList;


/**
 * 定义单链表的节点
 * @author jeffSheng
 */
public class LinkNode {

    private String val;

    private LinkNode next;

    public LinkNode(String data){
        this.val  = data;
    }

    public String getData() {
        return val;
    }

    public LinkNode getNext() {
        return next;
    }

    public void setNext(LinkNode next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "["+val+"]";
    }
}
